import { createSSRApp } from 'vue';
import * as Pinia from 'pinia';
import tmui from './tmui';
import App from './App.vue';

export function createApp() {
  const app = createSSRApp(App);
  app.use(tmui, { shareDisable: false } as Tmui.tmuiConfig);
  return {
    app,
    Pinia
  };
}
